package com.erik.crawler.common;

public enum CodeEnum {
    //status code
    SUCCESS_CODE(200, "success"),
    SERVER_INTERNAL_ERROR(500, "The system is busy, please try again later"),
    SAVE_PROXY_ERROR(1000, "Failed to save agent"),
    NOT_FOUND(1001, "No data found"),
    PARAMS_ERROR(1002, "Parameter exception"),
    PROXY_EXISTS(1003, "The agent already exists");

    private int code;
    private String msg;

    CodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
